<?php
require_once './funcoes/base_dados.php';
?>

<!DOCTYPE html>
<html>
 <head>
        <meta charset="UTF-8">
        <title>Listar Selecoes</title>
	<link rel="stylesheet" type="text/css" href="tabelas.css" media="screen"/>
    </head>
    <body>
	<div id="inicio">
        <h1> 2018 FIFA WC RUSSIA </h1>
		<hr>
      <table id="t1">
		<tr>
			<th>Seleção</th>
			<th>País</th>
			<th>Responsável</th>
                        
		</tr>
		
		<?php
	     $selecoes = listarSelecoes();
         while ($row = mysql_fetch_array($selecoes)){
         ?>
            <tr>
                <td><?=$row['idSelecao']?></td>;
                <td><?=$row['nomePais'] ?></td>;
                <td><?=$row['idResponsavel'] ?></td>;
            </tr>
        <?php
          
         }
         ?>
        </table>
		</div>
    </body>
</html>
